#include <iconv.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

char *nor_fdl = "NOR_FDL";
char *nor_fdl = "NOR_FDL";

int unicode_convert(const char* * inbuf, size_t * inbytesleft, char* * outbuf, size_t * outbytesleft)
{
    iconv_t cd;
    int size;

    cd = iconv_open("UTF-16","UTF-32");
    if(cd <= 0)
    {
       LOGE("convert open failed");
    }

    size = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
    if(0 != size)
    {
       LOGE("convert failed");
       iconv_close(cd);
    }

    iconv_close(cd);
}